package derore.cli.render;

import derore.cli.message.LentilDrinkingMessage;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.util.Formatter;
import java.util.Locale;

/**
 *
 * @author TURBO_X
 */
public class LentilDrinkerMessageRenderer {

    // State
    private final OutputStream outs;
    // generated state
    private final PrintStream out;
    public LentilDrinkerMessageRenderer (final OutputStream _outs) throws UnsupportedEncodingException {
        outs = _outs;
        out = new PrintStream(outs, false, "UTF-8");
    }

    //
    public void Render (final LentilDrinkingMessage msg) {
        out.printf(Locale.UK, "Ο %s πίνει φακ-ες.%n", msg.getLentilDrinker());
        out.flush();
    }
}
